package com.app.service;

import com.app.model.ActivityModel;
import com.app.model.BusinessModel;
import com.app.model.UserModel;
import com.app.vo.ActivityVo;
import com.app.vo.BusinessVo;
import com.app.vo.TranslateActivityVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 16693103420
 * @since 2024-01-22
 */
public interface ActivityService extends IService<ActivityModel> {
    //查询所有的活动列表
    ActivityVo getActivityList(Integer page, Integer limit);
    //查询此商家待添加活动
    ActivityVo getActivityByBusiness(Integer page, Integer limit,Integer businessId);
    //立即抢购活动
    @Transactional
    void buyNowActivity(ActivityModel activity, UserModel user);
    //查询活动详情
    ActivityModel getActivityById(Integer id,Double longitude, Double latitude);

    Integer getViewCount(Integer id);
}
